#include "thread_pool.hpp"
#include "task.hpp"

#include <ctime>
#include <cstdlib>

using namespace cp_thread_pool;
using namespace cp_task;
int main(){
  Thread_pool<Task>* tp = new Thread_pool<Task>();
  tp->InitThread_pool();
  srand((long long)time(nullptr));
  while(1){
    Task t(rand() % 20 + 1, rand() % 10 + 1, "+-*/%"[rand() % 5]);
    tp->pushTask(t);
    sleep(1);
  }
  return 0;
}
